import { RootState, AppDispatch } from './store'
import { TypedUseSelectorHook, useSelector, useDispatch } from 'react-redux'
// 定义新的获取state数据和获取dispatch函数的方法
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector
export const useAppDispatch = () => useDispatch<AppDispatch>()
